Ext.regController("GameController", {
	"mode-0": function(opt) {
		startTime = new Date();
		Ext.dispatch({
			controller: CeleBrick.controllers.celebController,
			action: "initCeleb",
			mode: 0,
			timeout: iCurTimeAlive,
			elCeleb: divCeleb[0],
			elCritical: divCritical[0]
		})
	},

	"mode-1": function(opt) {
		startTime = new Date();
		Ext.dispatch({
			controller: CeleBrick.controllers.celebController,
			action: "initCeleb",
			mode: 1,
			timeout: iCurTimeAlive,
			elCeleb: divCeleb[0],
			elCritical: divCritical[0]
		})
	},

	"mode-2": function(opt) {
		startTime = new Date();
		Ext.dispatch({
			controller: CeleBrick.controllers.celebController,
			action: "initCeleb",
			mode: 2,
			timeout: iCurTimeAlive,
			elCeleb: divCeleb[0],
			elCritical: divCritical[0]
		});
		Ext.dispatch({
			controller: CeleBrick.controllers.celebController,
			action: "initCeleb",
			mode: 2,
			timeout: iCurTimeAlive,
			elCeleb: divCeleb[1],
			elCritical: divCritical[1]
		})
	}
});

CeleBrick.controllers.gameController = Ext.ControllerManager.get("GameController");